
import Vue from 'vue'
import axios from '../plugins/axois.js'

function login(username, password) {
    const url = 'login';
    const type = 'post'
    const params = { username: username, password: password }
    return axios.send(url, type, params);
}
Vue.prototype.$axios.login = login;